window.rootPath = (function (src) {
	src = document.currentScript
		? document.currentScript.src
		: document.scripts[document.scripts.length - 1].src;
	return src.substring(0, src.lastIndexOf("/") + 1);
})();

layui.config({
	base: rootPath + "module/",
	version: "4.0.3"
}).extend({
	admin: "admin",
	page: "page",
	tabPage: "tabPage",
	menu: "menu",
	fullscreen: "fullscreen",
	messageCenter: "messageCenter",
	menuSearch: "menuSearch",
	formDesigner: "formDesigner",
	cron: "cron",
	formField: "formField",
	inputTag: "inputTag",
	iconPicker: "iconPicker",
	labelGeneration: "labelGeneration",
	numberInput: "numberInput",
	staticField: "staticField",
	button: "button",
	tools: "tools",
	popup: "extends/popup",
	count: "extends/count",
	toast: "extends/toast",
	nprogress: "extends/nprogress",
	echarts: "extends/echarts",
	echartsTheme: "extends/echartsTheme",
	step: "extends/step",
	yaml: "extends/yaml"
}).use([], function () { });

var kapc = {
    openBusView(type){
        if(type == "publicfile"){//公开文件
            window.location.href = "https://www.baidu.com/";
        } else if(type == "file"){//网盘
            window.location.href = "https://www.baidu.com/";
        } else if(type == "message"){//聊天室

        } else if(type == "ai"){//AI机器人

        } else if(type == "applist"){//应用商城

        } else if(type == "website"){//常用网址

        } else if(type == "convenientTools"){//便捷工具

        } else if(type == "jindong"){//京东

        }
    }
}